package com.sh.cloudrender.application.service;

import com.aliyun.gts.sso.context.SFLoginAccountContext;
import com.aliyun.gts.sso.domain.LoginAccount;
import com.sh.cloudrender.application.dto.user.UserDTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;
@Slf4j
@Service
public class UserServiceImpl implements UserService{
    @Override
    public LoginAccount getCurrentUser() {
        LoginAccount loginAccount = SFLoginAccountContext.getLoginAccount();
        return loginAccount;
    }

    @Override
    public List<UserDTO> list() {
        return null;
    }
}
